package com.tpyule.tpclass.service;

import com.tpyule.tpclass.entity.bo.FCDetailBo;
import com.tpyule.tpclass.entity.dto.FavoriteDto;
import com.tpyule.tpclass.entity.pojo.Favorite;

import java.util.List;

/**
 * @author zzz
 * @version 1.0
 * @date 2020/4/25 14:16
 */
public interface FavoriteService {
    /**
     * 添加收藏
     * @param favorite
     * @return
     */
    public int addFavorite(Favorite favorite);

    /**
     * 取消收藏
     * @param favorite
     * @return
     */
    public int deleteFavorite(Favorite favorite);

    /**
     * 获取个人收藏数量
     * @param userId
     * @return
     */
    public int getSizeFavorite(String userId);
    /**
     * 展示个人收藏
     * @param dto
     * @return
     */
    public List<FCDetailBo> getListFavorite(FavoriteDto dto);
}
